| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | import chai from 'chai' |
||
| 26 | it('cmsStructure.structure.editStructure()', function() { |
||
| 27 | this.sinon = sinon.sandbox.create(); |
||
| 28 | var stub = sinon.stub(coreUtils.file, "removeFolder") |
||
| 29 | stub.returns('') |
||
| 30 | var result = cmsStructure.structure.editStructure('remove', folderPath) |
||
| 31 | chai.expect(result).to.not.be.undefined |
||
| 32 | chai.expect(result).to.equal(folderPath) |
||
| 33 | sinon.assert.calledOnce(coreUtils.file.removeFolder) |
||
| 34 | coreUtils.file.removeFolder.restore() |
||
| 35 | }); |
||
| 36 | |||
| 38 |